<!DOCTYPE html>
<html>
  <head>
    <title>JSTest2.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

 	<script type="text/javascript">
	
		var GlobalVariable = 10;//全局变量

 		function test()			//js函数没有返回值
 		{
 			var i = 3;			//局部变量
 			j = 3;				//全局变量	
 			alert(i);			//弹窗显示i的值
 			i=true;
 			alert(i);
 		}
 	</script>

  </head>
  	<input type="button" value="button" onclick="test()"> <!-- 点击时调用test()函数 -->
  <body>

  </body>
</html>
